﻿<UserControl x:Class="LiveTiss.Guias.GuiaOdontologia"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:guia="clr-namespace:LiveTiss.Guias"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"      
    xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls" 
    mc:Ignorable="d"
    Width="910" x:Name="guia">

    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>
    
    <StackPanel Width="910">
        <uc:CabecalhoGuiaOdonto TituloGuia="Guia Odontologia"
                                Value="{Binding Path=Guia.cabecalhoGuia,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
        <uc:GuiaOdontologiaDadosBeneficiario Value="{Binding Path=Guia.dadosBeneficiario,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
        <uc:GuiaOdontologiaDadosContratadoExecutante 
                 Value="{Binding Path=Guia.dadosContratadoExecutante,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}"/>
        <uc:GuiaOdontologiaProcedimentosExecutados Value="{Binding Path=Guia.procedimentosExecutados,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
        <uc:OutrasDespesas Value="{Binding Path=Guia.outrasDespesas,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
        <uc:AtendimentoOdontologia Value="{Binding Path=Guia.dadosAtendimento,ElementName=guia,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
        <Grid Margin="0,19,0,0" VerticalAlignment="Top">
            <Rectangle RadiusY="6" RadiusX="6" Stroke="#4D898989"/>
            <StackPanel Margin="12,14,8,0">
                <Grid Height="53" Margin="0,0,6,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.024*"/>
                        <ColumnDefinition Width="0.976*"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                        <TextBlock TextWrapping="Wrap" Text="Faturamento" FontFamily="Segoe UI" FontSize="13.333"/>
                        <ComboBox Width="180" HorizontalAlignment="Left" SelectedValuePath="Key" DisplayMemberPath="Value"
                                  ItemsSource="{Binding Path=Guia.TipoFaturamentoItems,ElementName=guia,Mode=OneWay}"
                                  SelectedIndex="{Binding Path=Guia.tipoFaturamento,ElementName=guia,Mode=TwoWay,Converter={StaticResource enumConverter},ConverterParameter='TipoFaturamento'}"/>
                    </StackPanel>
                </Grid>
                <Grid Height="53" Margin="0,0,6,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.024*"/>
                        <ColumnDefinition Width="0.976*"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                        <TextBlock TextWrapping="Wrap" Text="Observação:" FontFamily="Segoe UI" FontSize="13.333"/>
                        <TextBox Margin="0,6,323,0" MaxLength="240" Text="{Binding Path=Guia.observacao, ElementName=guia, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Grid>
    </StackPanel>
</UserControl>
